/**
 *
 * @param key {string}
 * @returns {Promise<{key: string, value: string}>}
 */
export function getConfig(key) {
	return window.setting.getByKey(key).then(({ dataValues }) => dataValues)
}


export function getStartRowOfImport() {
	return getConfig('startRowOfImport')
}

export function getAdvanceNoticeDays() {
	return getConfig('advanceNoticeDays')
}
